<?php
class NewsHelper extends AppHelper{

	var $helpers = array('Html', 'Form','Tree','Session','Number','Javascript');
	
	function beforeRender(){
		parent::beforeRender();
		
		App::import('Component', 'Calendar.Calendar');
    	$this->Calendar = new CalendarComponent;
   	
    	$this->View =& ClassRegistry::getObject('view'); 
    	
	}
	
	public function events($params=null){		    	
    	$events = $this->Calendar->events($params);
		return $events;
	}
}